package com.nsn.das.midas.service.assembler;

import java.util.List;
import java.util.Set;

import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;

import com.nsn.das.midas.model.component.Build;
import com.nsn.das.midas.model.component.NetworkElement;
import com.nsn.das.midas.model.component.RevisionHistory;
import com.nsn.das.midas.model.user.DASUser;

public interface CommonAssembler {

	public DASUser getUserFromJson(JSONObject author) throws Exception;

	public RevisionHistory buildRevisionHistory(DASUser editor, String comment);

	public JSONArray buildBuildsJson(Set<Build> builds) throws JSONException;

	public JSONArray buildNetworkElementJson(Set<NetworkElement> elements) throws JSONException;

	public JSONObject buildAuthorJson(DASUser author) throws JSONException;

	public String buildRevisionHistory(List<RevisionHistory> historys);

}